package com.googlecode.continuity.core.client.rpc;

/**
 * RPCCreationCallback provides a way to register known callbacks with the
 * {@link com.googlecode.continuity.core.client.CoreGWT}.  <code>RPCCreationCallback.createRPC</code> is called once the
 * RPC is requested for the first time and has to return an RPC instance.
 *
 * @author Peter Schmitt <aragos@aragos.de>
 * @see com.googlecode.continuity.core.client.CoreGWT
 */
public interface RPCCreationCallback {
  /**
   * Creates and returns an instance of an asynchronous RPC.
   *
   * @return an RPC instance
   */
  Object createRPC();
}
